package com.factory.reflect;

/**
 * @author wufagang
 * @description
 * @date 2022年07月16日 16:07
 */
public class Demo {

    public static void main(String[] args) {
        ReflectiveCarFactory<BCcar> bCcarReflectiveCarFactory = new ReflectiveCarFactory<>(BCcar.class);
        BCcar bCcar = bCcarReflectiveCarFactory.newCar();
        bCcar.run();


        ReflectiveCarFactory<AudiCar> audiCarReflectiveCarFactory = new ReflectiveCarFactory<>(AudiCar.class);
        AudiCar audiCar = audiCarReflectiveCarFactory.newCar();
        audiCar.run();
    }
}
